package com.biz.primus.model.tms.exception;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * TmsExceptions
 *
 * @author JKLiues
 * @date 2017年11月21日
 */
@Getter
@AllArgsConstructor
public enum TmsExceptions implements ExceptionType {

    DELIVER_FEE_NOT_FOUND(8000, "找不到配送费相关配置"),
    DELIVER_ORDER_STATUS_IS_NULL(8001, "查询状态为空"),
    DELIVER_ORDER_STATUS_NOT_SUPPORT(8002, "查询状态为空"),
    NOT_ALLOWED_TAKE_DELIVER_ORDER(8003, "接单不被允许"),
    DELIVER_ORDER_IS_ALREADY_TAKE(8004, "配送单已被接单"),
    OPERATOR_NOT_ALLOWED(8005, "配送员不匹配"),
    DELIVER_ORDER_NOT_EXIST(8006, "配送单不存在"),
    DELIVER_ORDER_CODE_IS_NULL(8007, "配送单号为空"),
    ORDER_NOT_FOUNT(8008, "订单未找到"),
    REASON_UPDATE_PARAM_ERROR(8009, "拒签理由更新错误,字段不能为空值"),
    SIGN_TYPE_IS_NULL(8010, "签收类别不能为空"),
    DELIVER_ORDER_STATUS_ERROR(8011, "匹配单状态不匹配"),
    DELIVER_ORDER_ITEM_IS_EMPTY(8012, "订单签收商品为空"),
    DELIVER_ORDER_DELAY_TIME_IS_NULL(8013, "延期签收时间为空"),
    DELIVER_ORDER_SIGN_ITEM_NOT_IN_ORDER(8014, "签收商品在订单中不存在"),
    DELIVER_ORDER_SIGN_QUANTITY_GT_QUANTITY_IN_ORDER(8015, "签收商品在数量大于订单商品数量或签收商品数量小于0");
    private int code;
    private String description;
}